package com.jgk.guice.basic.gettingstarted;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component(value="daSubBean")
public class BogusSubBean {

    private String name;
    @Value("#{systemProperties['user.name']}")
    private String other;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getOther() {
        return other;
    }
    public void setOther(String other) {
        this.other = other;
    }
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("BogusSubBean [name=");
        builder.append(name);
        builder.append(", other=");
        builder.append(other);
        builder.append("]");
        return builder.toString();
    }
    
}
